using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Evaluation3.classes;
public partial class mod_modTemplate : System.Web.UI.MasterPage, Evaluation3.interfaces.pageIMP 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        checkPermistion(getRemoteUser());
    }
    public void checkPermistion(remoteUser remoteUser)
    {
       
        if ((remoteUser == null) || (!remoteUser.ROLE_COMPANY_ADMIN.Equals(remoteUser.uRight)) || (Int32.Parse(remoteUser.companyID) <= 0))
        {
            Response.Redirect("../../login.aspx");
        }
       
    }
    public remoteUser getRemoteUser() { return (Evaluation3.classes.remoteUser)Session["remoteUser"]; } 
    public void btn_logOut_Click(Object sender, EventArgs e)
    {
        Response.Redirect("../../logout.aspx");
    }

}
